package org.budo.lock.distributed.api.service;

/**
 * @author limingwei2
 */
public interface DistributedLockService {
    /**
     * @return 如果已被锁,返回是谁,否则加锁并返回空
     */
    public String tryLock(String target, String caller);

    public void unLock(String target);
}